package com.fengwk.user.face.client.hystrix;

import java.util.Collection;

import org.springframework.stereotype.Component;

import com.fengwk.support.exception.BaseException;
import com.fengwk.user.face.client.ValidationClient;

@Component
public class ValidationClientHystrix implements ValidationClient {

	@Override
	public boolean validationRoles(Long userId, Collection<String> roles) {
		throw new BaseException("角色验证异常");
	}

	@Override
	public boolean validationPermissions(Long userId, Collection<String> permissions) {
		throw new BaseException("权限验证异常");
	}

}
